projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc8939c
)
(mouse-set-region-1): If transient-mark-mode
author
Richard M. Stallman
<rms@gnu.org>
Fri, 9 Jul 2004 16:54:04 +0000
(16:54 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 9 Jul 2004 16:54:04 +0000
(16:54 +0000)
is `identity', change it to `only'.
lisp/mouse.el
patch
|
blob
|
history
diff --git
a/lisp/mouse.el
b/lisp/mouse.el
index 7f9d080478a7bcfc953190091ccc27761e0c6c9b..b73967b99dccf2abef8956c348da81dcfd9534e4 100644
(file)
--- a/
lisp/mouse.el
+++ b/
lisp/mouse.el
@@
-625,7
+625,8
@@
This should be bound to a mouse drag event."
(defun mouse-set-region-1 ()
;; Set transient-mark-mode for a little while.
- (setq transient-mark-mode (or transient-mark-mode 'only))
+ (if (memq transient-mark-mode '(nil identity))
+ (setq transient-mark-mode 'only))
(setq mouse-last-region-beg (region-beginning))
(setq mouse-last-region-end (region-end))
(setq mouse-last-region-tick (buffer-modified-tick)))